package com.nlgc365.designpattern.Chapter04_Pattern.Behavior.P01_Observer.AsynchObserver;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class ConcreteObserverB implements IObserver {
    private Logger logger = LoggerFactory.getLogger(ConcreteObserverB.class);

    /**
     *
     */
    @Override
    public void inform() {
        Runnable task = () -> {
            logger.info("ThreadID: {} inform --> Observer: ", Thread.currentThread().getId(), this.getClass());
        };
        ThreadPoolUtils.getThreadPool().submit(task);
    }
}
